package test.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import test.dao.ThemeDao;
import test.entity.Theme;

@Transactional
public class ThemeService {

	private ThemeDao themeDao;

	public void setThemeDao(ThemeDao themeDao) {
		this.themeDao = themeDao;
	}

	public void add(Theme theme) {
		themeDao.add(theme);
	}

	public List<Theme> findAll() {
		
		return themeDao.findAll();
	}

	
}
